<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <link href="//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <link rel="stylesheet" href="../../css/backstage.css" type="text/css"/>
    <title>JpetStore后台管理</title>
</head>
<body>
<div th:replace="/administrator/common/head.html"></div>
<div class="mid">
    <div class="title">
        <label >订单信息</label><br>
    </div>
    <table class="tables">
        <thead>
        <tr>
            <td>订单编号</td>
            <td>用户名</td>
            <td>购买日期</td>
            <td>总价</td>
            <td>操作</td>
            <td>是否购买</td>
        </tr>
        </thead>
        <tbody>
        <tr th:each="order:${AdminOrderList}">
            <td th:text="${order.getOrderId()}">1</td>
            <td th:text="${order.getUserId()}">1</td>
            <td th:text="${order.getOrderDate()}">1</td>
            <td th:text="${order.getTotalPrice()}">1</td>
            <td style="width: 100px">
                <a th:href="@{'/order/AdminEditOrder?orderId='+${order.getOrderId()}+'&&'+'username='+${order.getUserId()}}">编辑信息并发货</a>
            </td>
            <td style="width: 100px" th:if="${order.getisBuy() eq '0'}">
                此订单还未支付
            </td>
            <td style="width: 100px" th:if="${order.getisBuy() eq '1'}">
                订单已经支付
            </td>
        </tr>
        </tbody>

    </table>
</div>
<div th:replace="/administrator/common/foot.html"></div>

</body>
</html>